package com.my.javaweb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author Felix
 * @date 2023/9/28 22:11
 */
@SpringBootApplication
@RestController
public class JavaWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(JavaWebApplication.class);
    }

    @GetMapping("test")
    public String test(){
        System.out.println(3);
//        System.out.println(2);
        System.out.println(4);
        return "javawebtest-time: " + new Date();
    }


}
